import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/AboutView.vue'),
    },

     {
      path: '/',
      name: 'index',
     
      component: () => import('../views/ShowYe.vue/Index.vue'),
    },

    {
      path: '/login',
      name: 'login',
     
      component: () => import('../views/ShowYe.vue/Login.vue'),
    },

     {
      path: '/addks',
      name: 'addks',
     
      component: () => import('../views/Ks.vue/Add.vue'),
    },

     {
      path: '/showks',
      name: 'showks',
     
      component: () => import('../views/Ks.vue/Show.vue'),
    },

       {
      path: '/fanks',
      name: 'fanks',
     
      component: () => import('../views/Ks.vue/Fan.vue'),
    },


   {
      path: '/addys',
      name: 'addys',
     
      component: () => import('../views/YiS.vue/Add.vue'),
    },


     {
      path: '/showys',
      name: 'showys',
     
      component: () => import('../views/YiS.vue/Show.vue'),
    },

   {
      path: '/addbf',
      name: 'addbf',
     
      component: () => import('../views/Bf.vue/Add.vue'),
    },

    {
      path: '/showbf',
      name: 'showbf',
     
      component: () => import('../views/Bf.vue/Show.vue'),
    },

  ],
})

export default router
